package com.hadwinling.blog.service;

import com.hadwinling.blog.entity.Notice;
import com.hadwinling.blog.entity.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HadwinLing
 * @version V1.0
 * @Package com.hadwinling.blog.service
 * @date 2020/8/20 14:25
 */
public interface NoticeService {


    int deleteByPrimaryKey(Integer id);

    int insert(Notice record);

    int insertSelective(Notice record);

    Notice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Notice record);

    int updateByPrimaryKey(Notice record);

    int updateTopById(Integer updatedTop, Integer id);

    List<Notice> selectAllByState(Integer state);

    List<Notice> selectAllByTopAndStateAndPowerstate(Integer top, Integer state,Integer powerState);

    List<Notice> selectAllByStateOrderByCreatetimeDesc(Integer state);

}


